home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / util / libs / mufs_usergroup.lha / usergroup / base.h < prev    next >
C/C++ Source or Header  |  1992-09-02  |  2KB  |  99 lines

  1. #ifndef _BASE_H_
  2. #define _BASE_H_
  3. /*
  4.  * $Id: base.h,v 2.1 1994/02/17 02:22:22 ppessi Exp $
  5.  *
  6.  * Usergroup library base. 
  7.  *
  8.  * Copyright (c) 1994
  9.  *
  10.  * Created      : Sun Nov 28 17:45:55 1993 ppessi
  11.  * Last modified: Sat Feb 12 09:19:03 1994 ppessi
  12.  *
  13.  * $Log: base.h,v $
  14.  * Revision 2.1  1994/02/17  02:22:22  ppessi
  15.  * Saving before downgrading library
  16.  *
  17.  * Revision 1.1  1994/01/20  08:18:29  ppessi
  18.  * Initial revision
  19.  *
  20.  */
  21.  
  22. #include "config.h"
  23.  
  24. #ifndef EXEC_LIBRARIES_H
  25. #include <exec/libraries.h>
  26. #endif
  27. #ifndef EXEC_TASKS_H
  28. #include <exec/tasks.h>
  29. #endif
  30. #ifndef EXEC_SEMAPHORES_H
  31. #include <exec/semaphores.h>
  32. #endif
  33. #ifndef DEVICES_NETINFO_H
  34. #include <devices/netinfo.h>
  35. #endif
  36. #ifndef LIBRARIES_USERGROUP_H
  37. #include <libraries/usergroup.h>
  38. #endif
  39.  
  40. #ifdef USE_PRAGMAS
  41. #include <clib/exec_protos.h>
  42. #include <pragmas/exec_sysbase_pragmas.h>
  43. extern struct ExecBase *SysBase;
  44. #include <proto/dos.h>
  45. #endif
  46.  
  47. #include <errno.h>
  48.  
  49. extern COMMON const UBYTE _LibName[]; 
  50.  
  51. #ifndef    MAXLINELEN
  52. #define    MAXLINELEN    1024
  53. #endif
  54.  
  55. /*
  56.  * errno handling
  57.  */
  58. extern ULONG break_mask;
  59. extern int internal_errno;
  60. extern void *errnop;
  61. typedef enum { es_byte, es_word, es_long } errnop_t;
  62. extern errnop_t errnosize;
  63.  
  64. void SetErrno(int errno);
  65.  
  66. /*
  67.  * netinfo.device IO
  68.  */
  69. extern struct SignalSemaphore ni_lock[];
  70. struct NetInfoReq *OpenNIUnit(ULONG unit);
  71. void CloseNIUnit(ULONG unit);
  72. BYTE myDoIO(struct NetInfoReq *req);
  73. void SetDeviceErr(void);
  74.  
  75. /*
  76.  * utmp IO
  77.  */
  78. void CleanupUTMP(void);
  79.  
  80. /*
  81.  * Random numbers 
  82.  */
  83. ULONG LRandom(void);
  84. int LRandomInit(void);
  85.  
  86. /*
  87.  * support 
  88.  */
  89. static __inline void InitList(struct List *list)
  90. {
  91.   list->lh_Head = (struct Node*)&list->lh_Tail;
  92.   list->lh_Tail = NULL;
  93.   list->lh_TailPred = (struct Node*)&list->lh_Head;
  94. }
  95.  
  96. void InMsg(const char *fmt, ...);
  97.  
  98. #endif /* _BASE_H_ */
  99.